package com.shangxian.giveithome.mapper;

import com.shangxian.giveithome.entity.petCard.PetVaccinesRecord;
import com.shangxian.giveithome.entity.petCard.outputParam.BackVaccinesRecordList;
import com.shangxian.giveithome.entity.petCard.outputParam.InoculationRecordDetails;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @author coderFu
 * @create 2021/5/3
 */
@Mapper
public interface PetVaccinesRecordMapper {

    /**
     * 录入接种信息
     * @param petVaccinesRecord
     * @return
     */
    int recordInoculationMessage(PetVaccinesRecord petVaccinesRecord);

    /**
     * 根据宠物二维码id查询宠物疫苗接种信息
     * @param id
     * @return
     */
    List<InoculationRecordDetails> findInoculationRecord(Long id);

    /**
     *根据宠牌二维码记录id查询宠物接种记录
     * @param petCardCodeId
     * @return
     */
    List<BackVaccinesRecordList> backFindVaccinesRecordByPetCardCodeId(Long petCardCodeId);

    /**
     * 后台通过宠牌编号添加接种记录
     * @param petVaccinesRecord
     * @return
     */
    int backAddVaccines(PetVaccinesRecord petVaccinesRecord);
}
